class @AdminCategoryEditModel extends Backbone.Model

    defaults:
        AuthorId: 0
        Name: ''
        SuccessMessage: ''

    url: ->
        url = SiteMap.Admin.Categories.Edit + "?categoryId=" + @attributes.CategoryId
        return encodeURI(url)

    parse: (response) ->
        return {
            Name: response.Name,
            SuccessMessage: response.SuccessMessage
        }
